package com.youdo.careyes;

import android.content.Context;
import android.util.Log;

import androidx.multidex.MultiDexApplication;

import com.blankj.utilcode.util.Utils;
import com.tencent.bugly.crashreport.BuglyLog;
import com.tencent.bugly.crashreport.CrashReport;

public class MyApp extends MultiDexApplication {
    private static final String TAG = "MytApp";
    private static MyApp sAppInstance;

    @Override
    public void onCreate() {
        super.onCreate();
        sAppInstance = this;
        Utils.init(this);
//        CrashReport.initCrashReport(this, "8fa488b029", true);
        BuglyLog.e(TAG, "=======================end=======================");
    }

    @Override
    public void onTerminate() {
        super.onTerminate();
        Log.i(TAG, "----------------- onTerminate ------------" + this);
    }

    public static MyApp getApplication() {
        return sAppInstance;
    }

    @Override
    public Context getApplicationContext() {
        return super.getApplicationContext();
    }

}

